﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class 宋宋 : Form
    {
        public 宋宋()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            var UserName = "admin";
            var PassWord = "123456";

            var uid = User.Text;
            var pwd = Pasd.Text;

            if (UserName == uid && PassWord == pwd)
            {
                MessageBox.Show("登陆成功", "恭喜你",MessageBoxButtons.YesNo,MessageBoxIcon.Information);
            }
            else 
            {
                MessageBox.Show("登陆失败","很遗憾",MessageBoxButtons.YesNo,MessageBoxIcon.Warning);
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
